package com.zito.health.service.impl;

import com.zito.health.common.service.impl.BaseServiceImpl;
import com.zito.health.entity.Permission;
import com.zito.health.mapper.PermissionMapper;
import com.zito.health.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by gan on 2019/11/4.
 */
@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> queryUserPermission(Integer userId) {
        return permissionMapper.queryUserPermission(userId);
    }

    @Override
    public List<Permission> queryUserMenu(Integer userId,Integer type) {
        return permissionMapper.queryUserMenu(userId,type);
    }
}
